package com.itlong.cloud.app.service;

import com.alibaba.fastjson.JSONObject;
import com.itlong.cloud.enumerate.oldapp.Message;

/**
 * <desc>
 *     旧版APP的我版块服务层接口
 * </desc>
 *
 * @createDate 2017/11/1
 */
public interface IAppOldMineService {

    /**
     * <desc>
     *     旧版APP_邀请家人查询当前用户的业主房间信息
     * </desc>
     * @param userId
     * @param projectId
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/1
     */
    JSONObject getUserOwnRoom(String userId,String projectId) throws  Exception;

    /**
     * <desc>
     *     旧版APP_已授权家人列表
     * </desc>
     * @param projectId
     * @param userId
     * @param pageNo
     * @param pageSize
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/2
     */
    Message getAuthPersionList(String projectId,String userId,Integer pageNo,Integer pageSize) throws Exception;

    /**
     * <desc>
     *     旧版APP_修改授权人备注
     * </desc>
     * @param userId
     * @param authPhoneNo
     * @param userRemarks
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/2
     */
    Message updateAuthUserRemark(String userId,String authPhoneNo,String userRemarks) throws Exception;


    /**
     * <desc>
     *     旧版APP_添加用户反馈信息
     * </desc>
     * @param userId
     * @param projectId
     * @param feedbackInfo
     * @return
     * @throws Exception
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/3
     */
    Message addFeekBack(String userId,String projectId,String feedbackInfo) throws Exception;


    /**
     * <desc>
     *     旧版APP_删除家人
     * </desc>
     * @param phoneNo
     * @param authPhoneNo
     * @param projectId
     * @return
     * @throws Exception
     * * @author cuiduanwu
     * @createDate 2017/11/2
     */
    Message delUserChild(String phoneNo,String authPhoneNo,String projectId) throws Exception;

    /**
     * <desc>
     *     旧版APP_获取所有正在服务中的小区信息，用户所拥有小区除外
     * </desc>
     * @param phoneNo
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/9
     */
    Message getServiceProject(String phoneNo) throws Exception;


    /**
     * <desc>
     *      旧版APP_用户添加小区
     * </desc>
     * @param phoneNo
     * @param projectId
     * @param projectName
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/9
     */
    Message addProjectByUser(String phoneNo,String projectId,String projectName) throws Exception;


    /**
     * <desc>
     *     旧版APP_用户删除小区
     * </desc>
     * @param phoneNo
     * @param projectId
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/10
     */
    Message delProjectByUser(String phoneNo,String projectId) throws Exception;

    /**
     * <desc>
     *     旧版APP_用户点击切换小区
     * </desc>
     * @param phoneNo
     * @param projectId
     * @param projectName
     * @return
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/10
     */
    Message userChangeProject(String phoneNo,String projectId,String projectName) throws Exception;

    /**
     * <desc>
     *     旧版APP_运行日志上传
     * </desc>
     * @param logJson
     * @return
     * @throws Exception
     * @throws Exception
     * @author cuiduanwu
     * @createDate 2017/11/13
     */
    Message addRunLog(String logJson) throws Exception;



















}
